import { DxButton, DxTextBox, DxSelectBox, DxRadioGroup } from 'devextreme-vue'
export default {
  name: 'Secend',
  components: {
    DxTextBox,
    DxButton,
    DxSelectBox,
    DxRadioGroup
  },
  data: function() {
    return { age: '18' }
  },
  computed: {
    priorities: function() {
      return [
        this.$t('lang.secend.radioitemLow'),
        this.$t('lang.secend.radioitemNormal'),
        this.$t('lang.secend.radioitemUrgent'),
        this.$t('lang.secend.radioitemHigh')
      ]
    }
  },
  methods: {
    saveMeg: function() {
      alert(this.$t('lang.secend.messageSave').replace('{0}', 1))
    },
    linkBtnClick: function() {
      const routeUrl = this.$router.resolve({
        path: '/'
      })
      window.open(routeUrl.href, '_parent')
    }
  }
}
